import request from '@/utils/request'

// 查询已通过审核记录列表
export function listReviewRecord(query) {
  return request({
    url: '/reviewRecord/reviewRecord/list',
    method: 'get',
    params: query
  })
}

// 查询已通过审核记录详细
export function getReviewRecord(algsReviewId) {
  return request({
    url: '/reviewRecord/reviewRecord/' + algsReviewId,
    method: 'get'
  })
}

// 查询已通过审核记录详细
export function addE(algsReviewId) {
  return request({
    url: '/reviewRecord/reviewRecord/' + algsReviewId,
    method: 'post'
  })
}

// 新增已通过审核记录
export function addReviewRecord(data) {
  return request({
    url: '/reviewRecord/reviewRecord',
    method: 'post',
    data: data
  })
}

// 修改已通过审核记录
export function updateReviewRecord(data) {
  return request({
    url: '/reviewRecord/reviewRecord',
    method: 'put',
    data: data
  })
}

// 删除已通过审核记录
export function delReviewRecord(algsReviewId) {
  return request({
    url: '/reviewRecord/reviewRecord/' + algsReviewId,
    method: 'delete'
  })
}
